package com.abaaba.project2.controller.wxcontroller;

import com.abaaba.project2.bean.vo.BaseRespVo;
import com.abaaba.project2.bean.vo.wx.WxSearchIndexVO;
import com.abaaba.project2.service.wx.WxSearchHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Hedgehog
 * @Date 2021/6/8 10:12
 * @Version 1.0
 */
@RestController
@RequestMapping("wx/search")
public class WxSearchIndexController {
    @Autowired
    WxSearchHistoryService wxSearchHistoryService;

    @RequestMapping("/index")
    public BaseRespVo wxSearchIndex(){


        WxSearchIndexVO wxSearchIndexVO = wxSearchHistoryService.search();

        return BaseRespVo.ok(wxSearchIndexVO);
    }
}
